﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Inovout.Kuajing.Exports.Console.Web.Models
{
    public class ConsigneeInfo
    {

        [Required(ErrorMessage = "交易方名称不可为空")]
        [StringLength(50, ErrorMessage = "名称长度不能超过50个字符")]
        [Alias("公司名")]
        public string CommpanyName { get; set; }
        public int CommpanyCode { get; set; }

        [Required(ErrorMessage = "国家必须选择")]
        public string Country { get; set; }

        [Required(ErrorMessage = "地址不可为空")]
        [StringLength(20, ErrorMessage = "地址长度不能超过50个字符")]
        [Alias("联系人")]
        public string Address { get; set; }

        public int ConsigneeCode { get; set; }

        [Required(ErrorMessage = "联系人不可为空")]
        [StringLength(20, ErrorMessage = "名称长度不能超过20个字符")]
        [Alias("联系人")]
        public string ContactPersonName { get; set; }
        public int ContactPersonCode { get; set; }


        [Required(ErrorMessage = "手机不可为空")]
        [StringLength(11, ErrorMessage = "号码长度不能超过11个字符")]
        [RegularExpression(@"^1[3458][0-9]{9}$", ErrorMessage = "手机号格式不正确")]
        public string ContactPhone { get; set; }
        public int OrderId { get; set; }
  
    }
}